projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9177396
)
(Fformat): Explicitly test for end of format string and don't use `index'.
author
Richard M. Stallman
<rms@gnu.org>
Fri, 23 Sep 2005 18:22:46 +0000
(18:22 +0000)
committer
Richard M. Stallman
<rms@gnu.org>
Fri, 23 Sep 2005 18:22:46 +0000
(18:22 +0000)
src/editfns.c
patch
|
blob
|
history
diff --git
a/src/editfns.c
b/src/editfns.c
index c8b02570c12baead096351ed44fdee9436e0aefc..ee1249acc118c92fa39a7412d2b961970f75cbd6 100644
(file)
--- a/
src/editfns.c
+++ b/
src/editfns.c
@@
-3424,7
+3424,9
@@
usage: (format STRING &rest OBJECTS) */)
digits to print after the '.' for floats, or the max.
number of chars to print from a string. */
- while (*format && index ("-0# ", *format))
+ while (format != end
+ && (*format == '-' || *format == '0' || *format == '#'
+ || * format == ' '))
++format;
if (*format >= '0' && *format <= '9')